<?php
include '../../templates/db/db.php';

$family = htmlspecialchars(trim($_POST['family']));

if(strlen($family) < 3){
   echo "<img src='../img/close.png' width='15px' style='margin-left: 10px;' />";
   echo "<p class='error'>Кратко фамилно име!</p>";
   $error_family = true;
} else {
   echo "<img src='../img/check.png' width='15px' style='margin-left: 10px;' />";
}
?>